import java.sql.Connection; 
import java.sql.DriverManager; 
import java.sql.SQLException;

public class JdbcExample {

	public static void main(String args[]) { 
	    Connection con = null; 
	    try { 
	      Class.forName("com.mysql.jdbc.Driver").newInstance(); 
	con = DriverManager.getConnection("jdbc:mysql://academicmysql.cc.gatech.edu/cs6310_team3_p3", " cs6310_team3_p3", 
	"secret"); 
	      if(!con.isClosed()) 
	        System.out.println("Successfully connected to " + 
	          "MySQL server using TCP/IP..."); 
	    } catch(Exception e) { 
	      System.err.println("Exception: " + e.getMessage()); 
	    } finally { 
	      try { 
	        if(con != null) 
	          con.close(); 
	      } catch(SQLException e) {} 
	    } 
	  } 
}
